Why is cakephp form input stored in $this->data and POST data stored in $this->params['form'] ?

Posted by spudnik1979 on Stack Overflow See other posts from Stack Overflow or by spudnik1979
Published on 2010-05-03T13:55:55Z Indexed on 2010/05/03 18:08 UTC
Read the original article Hit count: 197

Filed under:
|
|

the cakephp rest tutorial says that post data should be in $this->data, but I am finding that it is not, but instead inside $this->params['form']

However, when using cakephp form helper in a view, the data is in $this->data.

Am I correct to have to check both locations in my controller?

It just seems a bit of a waste of extra code. Shouldnt the data appear in one place for whether it came from a rest rest requestor or Cakephp form post?

ps im using cakephp 1.3

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about rest